package label

const (
	RPC_SERVICE_CONTAINER = `container`
	RPC_SERVICE_K8S       = `k8s`
	RPC_SERVICE_HELM      = `helm`
	RPC_SERVICE_PROXY     = `proxy`

	RPC_SERVICE_OBSERVER_METRIC = `metric`
	RPC_SERVICE_OBSERVER_TRACE  = `trace`
	RPC_SERVICE_OBSERVER_LOG    = `log`
)

const (
	RpcVersion        = `v2`
	RpcAgentApiPerfix = RpcVersion + `.apis.agent`
)

// observability api
const (
	MetricPushOn  = RpcAgentApiPerfix + `.metric.push.on`
	MetricPushOff = RpcAgentApiPerfix + `.metric.push.off`

	TracePushOn  = RpcAgentApiPerfix + `.trace.push.on`
	TracePushOff = RpcAgentApiPerfix + `.trace.push.off`

	LogPushOn  = RpcAgentApiPerfix + `.log.push.on`
	LogPushOff = RpcAgentApiPerfix + `.log.push.off`
)

// container api
const (
	CreateContainer         = RpcAgentApiPerfix + `.container.create`
	DeleteContainer         = RpcAgentApiPerfix + `.container.delete`
	UpdateContainerCpuSet   = RpcAgentApiPerfix + `.container.cpu.set`
	UpdateContainerCpuShare = RpcAgentApiPerfix + `.container.cpu.share`
	SpecContainerResource   = RpcAgentApiPerfix + `.container.spec`
)

// k8s api
const (
	ApplyK8sYaml  = RpcAgentApiPerfix + `.k8s.yaml.apply`
	DeleteK8sYaml = RpcAgentApiPerfix + `.k8s.yaml.delete`
)

// helm api
const (
	ListHelmRelease    = RpcAgentApiPerfix + `.helm.release.list`
	GetHelmRelease     = RpcAgentApiPerfix + `.helm.release.get`
	InstallHelmChart   = RpcAgentApiPerfix + `.helm.chart.install`
	UnInstallHelmChart = RpcAgentApiPerfix + `.helm.chart.uninstall`
	UpdateHelmChart    = RpcAgentApiPerfix + `.helm.chart.update`
	ListHelmChart      = RpcAgentApiPerfix + `.helm.chart.list`
	GetHelmChart       = RpcAgentApiPerfix + `.helm.chart.get`
)

// proxy api
const (
	HttpGetProxy  = RpcAgentApiPerfix + `.http.get`
	HttpPostProxy = RpcAgentApiPerfix + `.http.post`
)
